package com.inspur.icity.bus.base.core.exception;

/**
 * 认证错误 - 40
 */
public class UnAuthorizedException extends ApplicationException{
    public UnAuthorizedException() {
        super("UnAuthorized");
        error.setCode(401);
    }

    public UnAuthorizedException(String message) {
        super(message);
        error.setCode(401);
    }

    public UnAuthorizedException(String message, Throwable cause) {
        super(message, cause);
        error.setCode(401);
    }

    public UnAuthorizedException(Throwable cause) {
        super(cause);
        error.setCode(401);
    }

    public UnAuthorizedException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
        error.setCode(401);
    }
}
